package com.ibeeking.gmc.global.g.rest.service;

import com.ibeeking.gmc.global.service.common.dos.GroupDO;
import com.ibeeking.gmc.global.service.common.param.GroupParam;
import com.ibeeking.gmc.global.service.common.query.GroupPageQuery;
import com.ibeeking.gmc.global.service.common.query.GroupQuery;
import com.ibeeking.gmc.global.service.common.vo.GroupPageVO;
import com.ibeeking.gmc.global.service.common.vo.GroupVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface IGroupService extends IService<GroupDO> {


    /**
     * 添加集团
     * @param groupParam
     * @return
     */
    Boolean add(GroupParam groupParam);

    /**
     * 修改集团信息
     * @param groupParam
     * @return
     */
    Boolean modify(GroupParam groupParam);

    /**
     * 根据id修改发布状态
     * @param id
     * @return
     */
    Boolean changeStatus(Long id,Integer status , Long modifyBy);

    /**
     * 根据id删除集团
     * @param id
     * @return
     */
    Boolean del(Long id);

    /**
     * 分页条件查询
     * @param groupPageQuery
     * @return
     */
    Page<GroupPageVO> pageList(GroupPageQuery groupPageQuery);

    /**
     * 根据id查看详情
     * @param id
     * @return
     */
    GroupVO view(Long id);

    /***
     * 查询列表
     */
    List<GroupVO> list(GroupQuery groupQuery);



}
